﻿<UserControl x:Class="HSE.Aqxs"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:HSE.Common"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"     
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <Storyboard x:Name="showAttachmentBorder">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="border">
                <EasingDoubleKeyFrame KeyTime="0" Value="1500">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CubicEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="0">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CubicEase EasingMode="EaseInOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
                <DiscreteObjectKeyFrame KeyTime="0:0:1">
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border">
                <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Name="hiddenAttachmentBorder">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="border">
                <SplineDoubleKeyFrame KeyTime="0" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="0:0:0.5" Value="1500"/>
            </DoubleAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="border">
                <DiscreteObjectKeyFrame KeyTime="0">
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5">
                    <DiscreteObjectKeyFrame.Value>
                        <Visibility>Visible</Visibility>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border">
                <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <StackPanel Orientation="Horizontal">
                <TextBlock VerticalAlignment="Center" Text="宣誓时间:" FontSize="16"></TextBlock>
                <telerik:RadDateTimePicker DateTimeWatermarkContent="开始时间"  VerticalAlignment="Center" Width="120" ></telerik:RadDateTimePicker>
                <TextBlock VerticalAlignment="Center" Text=" —— "></TextBlock>
                <telerik:RadDateTimePicker DateTimeWatermarkContent="截止时间" VerticalAlignment="Center" Width="120"></telerik:RadDateTimePicker>
                <TextBlock Margin="10 0 0 0" VerticalAlignment="Center" Text="宣誓单位:" FontSize="16">
                    
                </TextBlock>
                <telerik:RadComboBox  VerticalAlignment="Center" Width="120">
                    <telerik:RadComboBoxItem Content="全部" IsSelected="True">
                       
                    </telerik:RadComboBoxItem>
                </telerik:RadComboBox>
                <TextBlock Margin="10 0 0 0" VerticalAlignment="Center" Text="宣誓类型:" FontSize="16">
                    
                </TextBlock>
                <telerik:RadComboBox  VerticalAlignment="Center" Width="120">
                    <telerik:RadComboBoxItem Content="全部" IsSelected="True">

                    </telerik:RadComboBoxItem>
                </telerik:RadComboBox>
                <telerik:RadButton Margin="20 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Content="查询" FontSize="16"></telerik:RadButton>
            </StackPanel>
            
        </Grid>
        <local:TelerikGridView x:Name="gridview" Grid.Row="1"></local:TelerikGridView>
        <Border x:Name="border" Grid.Row="0" Grid.RowSpan="2"  RenderTransformOrigin="0.5,0.5" Background="#FFF6F6F6">
            <Border.RenderTransform>
                <CompositeTransform TranslateX="1500"/>
            </Border.RenderTransform>
            <Grid >
                <local:PictureAttachmentShow x:Name="showAttachment"></local:PictureAttachmentShow>
                <Image Source="/Images/attachmentclose.png" HorizontalAlignment="Right" VerticalAlignment="Top" Width="32" Height="32" Cursor="Hand" MouseLeftButtonDown="Image_MouseLeftButtonDown"></Image>
            </Grid>
        </Border>
    </Grid>
</UserControl>
